package com.yiyang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyang.pojo.Building;
import com.yiyang.pojo.vo.PageResult;
import com.yiyang.pojo.vo.Result;

import java.util.List;

public interface BuildingService extends IService<Building> {
    Result<Building> getBuildingById(Integer id);

    Result<PageResult<List<Building>>> getAllBuilding(Integer currentPage, Integer pageSize, String name);

    Result<Void> addBuilding(Building building);

    Result<Void> updateBuilding(Building building);

    Result<Void> deleteBuilding(Integer id);
}
